cmake_minimum_required(VERSION 3.5.1)

project(routing)

add_subdirectory(proto)
add_subdirectory(common)

add_subdirectory(topo_creator)

add_subdirectory(graph)

add_subdirectory(core)

add_subdirectory(strategy)



add_library( routing_lib   routing.cc)
target_link_libraries( routing_lib
cyber
adapter_gflags
monitor_log_proto_lib
map::hdmap_util
monitor_log
routing_a_star_strategy
strategy
# "//modules/common/monitor_log",
routing_proto
core

)

install(TARGETS routing_lib
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )



add_library( routing_component_lib  routing_component.cc )
target_link_libraries( routing_component_lib 
routing_lib
routing_proto
)

install(TARGETS routing_component_lib
EXPORT  apollo-export
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION .
)






add_library(routing INTERFACE)
target_link_libraries(routing INTERFACE
        routing_common_module
        routing_proto
        routing_lib
        routing_component_lib
        )

install(TARGETS routing
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )
